﻿using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SouthernLand.Common.BOL.Country
{
    [ParseChildren(true)]
    public class ddlCountry : DropDownList
    {
        public ddlCountry()
        {
            List<Country> obj = Country.GetAllCountry();
            DataSource = obj;
            DataValueField = "CountryID";
            DataTextField = "CountryName";
            DataBind();

            Items.Insert(0, new ListItem(ResourceManager.GetString("PleaseSelect"), ""));
        }
    }
}